1 using System;
2 using
System.Collections.Generic;
3 using
System.ComponentModel;
4 using
System.Data;
5 using
System.Drawing;
6 using
System.Linq;
7 using
System.Text;
8 using
System.Windows.Forms;
9
10 namespace
PhoneDirectory
11 {
12     
public partial class frm_prev : Form
13     {
14
15         
static string Name1;
16         
static string Nickname;
17         
static string PhoneNumber;
18         
static string MobileNumber;
19         
static string EmailAddress;
20         
static string HomeAddress;
21         
static string Company;
22         
static string Position;
23         
static string GroupName;
24         
static string Website;
25         
static string FacebookAccount;
26
27         
public frm_prev(string name, string nickname, string phonenumber,string mobilenumber,string emailadd,string homeadd,string comp,string post,string group,string web,string fb)
28         {
29             Name1 =name;
30             Nickname = nickname;
31             PhoneNumber= phonenumber;
32             MobileNumber=mobilenumber;
33             EmailAddress=emailadd;
34             HomeAddress = homeadd ;
35             Company = comp;
36             Position= post;
37             GroupName=
group;
38             Website= web;
39             FacebookAccount=fb;
40
41             InitializeComponent();
42         }
43
44         
private void frm_prev_Load(object sender, EventArgs e)
45         {
46             label1.Text =
"Name : " + Name1;
47             label2.Text =
"Nickname : " + Nickname;
48             label3.Text =
"Phone Number : " + PhoneNumber;
49             label4.Text =
"Mobile Number : " + MobileNumber;
50             label5.Text =
"Email Address : " + EmailAddress;
51             label6.Text =
"Home Address : " + HomeAddress;
52             label7.Text =
"Company : " + Company;
53             label8.Text =
"Position : " + Position;
54             label9.Text =
"Group : " + GroupName;
55             label10.Text =
"Website : " + Website;
56             label11.Text =
"Facebook Account : " + FacebookAccount;
57         }
58
59         
private void button1_Click(object sender, EventArgs e)
60         {
61             frm_update a =
new frm_update(Name1, Nickname, PhoneNumber, MobileNumber, EmailAddress, HomeAddress, Company, Position, GroupName, Website, FacebookAccount);
62             a.ShowDialog();
63             
this.Close();
64         }
65     }
66 }


Gõ tìm kiếm nhanh...